﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02.HumanClasses
{
    public class Student : Human
    {
        protected double grade;

        public Student(string firstName, string secondName, double grade)
            :base(firstName, secondName)
        {
            this.grade = grade;
        }

        public double Grade
        {
            get
            {
                return this.grade;
            }
            set
            {
                this.grade = value;
            }
        }

        public override string ToString()
        {
            return string.Format("{0} {1} {2}", firstName, lastName, grade);
        }

    }
}
